package com.koron.ticket.operation.bean.excelbean;


import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 调度操作子步骤
 */
@Data
public class OperationStepTemplate implements IExcelModel, IExcelDataModel {

        /**
         * 行号
         */
        @ApiModelProperty(hidden = true)
        private Integer rowNum;

        /**
         * 错误消息
         */
        @ApiModelProperty(hidden = true)
        private String errorMsg;

    /**
     * 排序
     */
    @ApiModelProperty(value="排序")
    @Excel(name = "排序")
    private Integer sort;

    @ExcelCollection(name = "操作子步骤", orderNum = "9")
    private List<OperationStepcChildrenTemplate> children;

    private static final long serialVersionUID = 1L;

    public OperationStepTemplate() {
    }

    public OperationStepTemplate(Integer sort, List<OperationStepcChildrenTemplate> children) {
        this.sort = sort;
        this.children = children;
    }
}
